package net.xi.news.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import net.xi.news.pojo.Video;
import org.springframework.data.domain.Pageable;

public interface VideoService  extends IService<Video> {
    /**
     * 查询视频列表
     * @param query
     * @param pageable
     * @return
     */
    Page<Video> listsearchVideo(String query, Pageable pageable);

    /**
     * 查询首页top5视频
     * @return
     */
    Page<Video> findVideoByPage();
}
